/*
function load() {
    var tab = document.getElementById("tbl");
    var rows = tab.rows;
    console.log(rows.length); //获取表格的行数

    for (var i = 0; i < rows.length; i++) { //遍历表格的行
        for (var j = 0; j < rows[i].cells.length; j++) { //遍历每行的列
            console.log("第" + (i + 1) + "行，第" + (j + 1) + "列的值是:" + rows[i].cells[j].innerHTML);
        }
    }
}
load(); //函数调用*/
let url = "http://localhost:8080/xuanzedenglu";
$.ajax({
    url: url,
    type: "get",
    async:true,
    dataType: "json",
    data: {

    },
    success: function(data){
        console.log(data);
        var welcomehead=data.get(1);
        console.log(welcomehead);

        //var uid=data.uid;

        $('.head').text("用户（"+welcomehead+")收件人，欢迎您！");

    },
    error: function (error) {
        console.log("错误"+error);
    }
});
load(); //函数调用
$(".goBack").click(function() {
    window.location.href = "/login";
})

